<?xml version="1.0" encoding="UTF-8" ?>
 
<!DOCTYPE tiles-definitions PUBLIC
       "-//Apache Software Foundation//DTD Tiles Configuration 2.0//EN"
       "http://tiles.apache.org/dtds/tiles-config_2_0.dtd">
<tiles-definitions>

	<!-- Template Completo -->
    <definition name="baseLayout" template="/baseLayout.jsp">
    	<put-attribute name="title" value="Live! by ApiConsulting" />
        <put-attribute name="header" value="/component/header.jsp" />
        <put-attribute name="content" value="/component/content.jsp" />
        <put-attribute name="sidebar" value="/component/sidebar.jsp" />
        <put-attribute name="footerContent" value="/component/footerContent.jsp" />
    </definition>
    
    <!-- Template Semplice -->
    <definition name="simpleLayout" template="/simpleLayout.jsp">
    	<put-attribute name="title" value="Live! by ApiConsulting" />
        <put-attribute name="header" value="/component/header.jsp" />
        <put-attribute name="logo" value="/component/logo.jsp" />
        <put-attribute name="bannerWrapper" value="/component/bannerWrapper.jsp" />
    </definition>

    <definition name="welcome" extends="simpleLayout">
    	<put-attribute name="title" value="Welcome - Live!" />
        <put-attribute name="content" value="/welcome.jsp" />
        <put-attribute name="header" value="/component/headerMenu.jsp" />
    </definition>
    
    <definition name="gestClientePage" extends="baseLayout">
    	<put-attribute name="title" value="Gestione Cliente - Live!" />
        <put-attribute name="content" value="/insert/insCliente.jsp" />
        <put-attribute name="header" value="/component/headerMenu.jsp" />
    </definition>
    <definition name="editClientePage" extends="baseLayout">
    	<put-attribute name="title" value="Gestione Cliente - Live!" />
        <put-attribute name="content" value="/edit/editCliente.jsp" />
        <put-attribute name="header" value="/component/headerMenu.jsp" />
    </definition>
    
    <definition name="gestCategoriaPage" extends="baseLayout">
    	<put-attribute name="title" value="Gestione Categoria - Live!" />
        <put-attribute name="content" value="/insert/insCategoria.jsp" />
        <put-attribute name="header" value="/component/headerMenu.jsp" />
    </definition>
    <definition name="editCategoriaPage" extends="baseLayout">
    	<put-attribute name="title" value="Gestione Categoria - Live!" />
        <put-attribute name="content" value="/edit/editCategoria.jsp" />
        <put-attribute name="header" value="/component/headerMenu.jsp" />
    </definition>

	<definition name="gestNoleggioPage" extends="baseLayout">
    	<put-attribute name="title" value="Gestione Noleggio - Live!" />
        <put-attribute name="content" value="/insert/insNoleggio.jsp" />
        <put-attribute name="header" value="/component/headerMenu.jsp" />
    </definition>
    <definition name="editNoleggioPage" extends="baseLayout">
    	<put-attribute name="title" value="Gestione Noleggio - Live!" />
        <put-attribute name="content" value="/edit/editNoleggio.jsp" />
        <put-attribute name="header" value="/component/headerMenu.jsp" />
    </definition>
    
    <definition name="gestProdottoPage" extends="baseLayout">
    	<put-attribute name="title" value="Gestione Prodotto - Live!" />
        <put-attribute name="content" value="/insert/insProdotto.jsp" />
        <put-attribute name="header" value="/component/headerMenu.jsp" />
    </definition>
    <definition name="editProdottoPage" extends="baseLayout">
    	<put-attribute name="title" value="Gestione Prodotto - Live!" />
        <put-attribute name="content" value="/edit/editProdotto.jsp" />
        <put-attribute name="header" value="/component/headerMenu.jsp" />
    </definition>
    
    <definition name="gestSottoCategoriaPage" extends="baseLayout">
    	<put-attribute name="title" value="Gestione SottoCategoria - Live!" />
        <put-attribute name="content" value="/insert/insSottoCategoria.jsp" />
        <put-attribute name="header" value="/component/headerMenu.jsp" />
    </definition>
    <definition name="editSottoCategoriaPage" extends="baseLayout">
    	<put-attribute name="title" value="Gestione SottoCategoria - Live!" />
        <put-attribute name="content" value="/edit/editSottoCategoria.jsp" />
        <put-attribute name="header" value="/component/headerMenu.jsp" />
    </definition>
    
    <definition name="gestUtentePage" extends="baseLayout">
    	<put-attribute name="title" value="Gestione Utente - Live!" />
        <put-attribute name="content" value="/insert/insUtente.jsp" />
        <put-attribute name="header" value="/component/headerMenu.jsp" />
    </definition>
    <definition name="editUtentePage" extends="baseLayout">
    	<put-attribute name="title" value="Gestione Utente - Live!" />
        <put-attribute name="content" value="/edit/editUtente.jsp" />
        <put-attribute name="header" value="/component/headerMenu.jsp" />
    </definition>

</tiles-definitions>